/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetluc;

import java.io.Serializable;

/**
 *
 * @author Lone_Wolf
 */
public class Entree implements Serializable {

    private int year;
    private int month;
    private int day;
    private Employe employe;
    private Client client;
    private double temps;
    private double salaire;
    private Travail_Effectue tache;
    private boolean facturee;

    public Entree(int year, int month, int day, Employe employe, Client client,
            double temps, double salaire, Travail_Effectue tache) {
        this.year = year;
        this.month = month;
        this.day = day;
        this.employe = employe;
        this.client = client;
        this.temps = temps;
        this.tache = tache;
        this.salaire = salaire;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }

    public int[] getDate() {
        return new int[]{year, month, day};
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    /*public void setDate(int[] date) {
        year = date[0];
        month = date[1];
        day = date[2];
    }*/

    public Employe getEmploye() {
        return employe;
    }

    public void setEmploye(Employe employe) {
        this.employe = employe;
    }

    public Travail_Effectue getTache() {
        return tache;
    }

    public void setTache(Travail_Effectue tache) {
        this.tache = tache;
    }

    public double getTemps() {
        return temps;
    }

    public void setTemps(double temps) {
        this.temps = temps;
    }

    public double getSalaire() {
        return salaire;
    }

    public void setSalaire(double salaire) {
        this.salaire = salaire;
    }

    public double getCout() {
        return salaire * temps;
    }

    public void setFacturee(boolean facturee) {
        this.facturee = facturee;
    }

    public boolean getFacturee() {
        return facturee;
    }
}
